Avoid accidental yanking of text while scrolling with
authorKim F. Storm <storm@cua.dk>
Thu, 28 Nov 2002 23:03:30 +0000 (23:03 +0000)
committerKim F. Storm <storm@cua.dk>
Thu, 28 Nov 2002 23:03:30 +0000 (23:03 +0000)
commit9d647424f203e9ae6580eef4b1a2a54e61f20515
treea115929143679405dee3facdc89726e79d6bdab0
parent088015d169d2a4eadcd734434f97d048d68fdfbf
Avoid accidental yanking of text while scrolling with
the mouse wheel.  This adds a short period after each mouse wheel
scroll event where a click on the mouse wheel button is ignored.

(mouse-wheel-click-event, mouse-wheel-inhibit-click-time): New customs.
(mouse-wheel-click-button, mwheel-inhibit-click-event-timer): New vars.
(mwheel-inhibit-click-timeout,mwheel-filter-click-events): New defuns.
(mwheel-scroll): Add mwheel-filter-click-events as pre-command-hook.
Start mwheel-inhibit-click-event-timer with timeout handler
mwheel-inhibit-click-timeout.
lisp/mwheel.el